package ysc.cqnu.operdb.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.mapper.DrawingMapper;
import ysc.cqnu.operdb.service.UpdateDrawingInfoNoImgService;

@Service
public class UpdateDrawingInfoNoImgServiceImpl implements UpdateDrawingInfoNoImgService {
    @Autowired
    private ResultData resultData;
    @Autowired
    private UpdateDrawingInfoNoImgService updateDrawingInfoNoImgService;
    @Autowired
    private DrawingMapper drawingMapper;
    @Override
    public ResultData updateDrawingInfoNoImgService(String huagao, String visualize, String purpose, String theSite, String bfDescribe, String id) {
        try {
            drawingMapper.updateDrawingInfoNoImg(visualize,purpose,theSite,bfDescribe,id);
            resultData.flag="DrawingInfoSuccess";
            resultData.data=null;
        } catch (Exception e) {
            e.printStackTrace();
            resultData.flag="DrawingInfoFail";
            resultData.data=null;
            return resultData;
        }
        return resultData;
    }
}
